package com.ericom.dao.hibernate;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.ericom.dao.ReturnGoodsOrderDao;
import com.ericom.model.ReturnGoodsOrder;
@Repository("returnGoodsOrderDao")
public class ReturnGoodsOrderDaoHibernate extends GenericDaoHibernate<ReturnGoodsOrder, Long>
		implements ReturnGoodsOrderDao {

	
	public ReturnGoodsOrderDaoHibernate() {
		super(ReturnGoodsOrder.class);
	}

	@Override
	public List<ReturnGoodsOrder> findReturnGoodsByOrder(Long orderId) {
		
		return this.getHibernateTemplate().find("from ReturnGoodsOrder where order_id=?",orderId);
	}

}
